//
//  GW_TextField.m
//  PaiLeXiongProject
//
//  Created by 小獾科技 on 2017/8/22.
//  Copyright © 2017年 小獾科技. All rights reserved.
//

#import "GW_TextField.h"

@implementation GW_TextField

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
//重写占位符方法 以改变占位符的位置
- (CGRect)placeholderRectForBounds:(CGRect)bounds
{
    // textSize:placeholder字符串size
    CGRect inset = CGRectMake( 30, bounds.origin.y + 3, GWIDTH, bounds.size.height);
    
    return inset;
}

@end
